package ihisab


class LendingTransaction {

	Person person

	BigDecimal amount

	Date fromDate

	Date toDate

	BigDecimal interestAmount

	String comments

	String transactionType



	static constraints = {
		person(blank: false)
		amount(blank: false ,nullable: false,  scale: 2)
		interestAmount(blank: false,nullable: false,scale:2)
		fromDate(blank: false)
		toDate(blank: false)
		transactionType(blank: false,nullable:false,inList : ["CREDIT", "DEBIT"])
		comments(blank:true)
	}
}
